<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title></title>
		<%@ include file="/jsp/front/common/header.jsp"%>
	</head>
	<body>
		<%@ include file="/jsp/front/common/nav.jsp"%>
		<div style="margin: auto; width: 985px;">
			<div class="MemberCenter">
				<div class="siteparttitle">
					<div class="gender"></div>
					<div class="info">
						<strong>您好:${member.name}</strong>&nbsp;&nbsp;[ 会员中心]&nbsp;&nbsp;[
						<a href="logout.html" class="lnk">退出</a>]
					</div>
					<div class="time"></div>
					<div style="clear: both;"></div>
				</div>

				<%@ include file="/jsp/front/member/memberNav.jsp"%>

				<div class="MemberMain">
					<div style="margin-right: 175px;">
						<div class="title">
							订单详情
						</div>

						<div style="border-width: 1px; background: #ffffff;" class="notice">
							<h4 class="fontcolorRed">
								订单(${orders.orderId})
							</h4>
							<div style="float: left; width: 620px;">
								<c:if test="${order.payStatus == 0}">
									<a href="order_pay.html?orderId=${order.orderId}"> <img src="<c:url value="/images/statics/btn-payorder.gif"/>" /> </a>
								</c:if>
							</div>
							<div style="clear: both;"></div>
						</div>
						<div class="CartWrap">
							<div style="background: rgb(245, 244, 236); border: 1px solid rgb(229, 221, 199);" class="FormWrap ">
								<table width="100%" cellspacing="0" cellpadding="0" border="0" class="liststyle data">

									<tr>
										<td>
											<h4>
												订单编号：${orders.orderId}
											</h4>
										</td>
										<td>
											下单日期：${orders.createTimeString}
										</td>
										<td>
											状态：
											<fmt:message key="od_order_payStatus_${orders.payStatus}" />
											[<fmt:message key="od_order_shipStatus_${orders.shipStatus}" />	]
										</td>
									</tr>

								</table>
							</div>
							<div style="background: none repeat scroll 0% 0% rgb(245, 244, 236); border: 1px solid rgb(229, 221, 199);" class="FormWrap ">
								<h4>
									购买的商品
								</h4>
								<div class="division">
									<table width="100%" cellspacing="0" cellpadding="3" class="liststyle">
										<thead>
											<tr>
												<th>
													图片
												</th>
												<th>
													商品名称
												</th>
												<th>
													商品积分
												</th>
												<th>
													价格
												</th>
												<th>
													数量
												</th>
												<th>
													小计
												</th>
											</tr>
										</thead>
										<c:forEach items="${orderItems}" var="item">
											<tr>
												<td>
													<div style="width: 50px; height: 50px;" class="product-list-img">
														<a href="dp_goods_get.html?goodsId=${item.goodsId}" target="_blank" style="border: 0px none;"><img width="41" height="50" src="${item.smallPic}" style="cursor: pointer;">
														</a>
													</div>
												</td>
												<td>
													<a target="_blank" href="dp_goods_get.html?goodsId=${item.goodsId}">${item.name}</a>
												</td>
												<td>
													${item.point}&nbsp;
												</td>
												<td>
													<fmt:message key="common_currency" />${item.singlePrice}
												</td>
												<td>
													${item.productCount}
												</td>
												<td>
													<fmt:message key="common_currency" />${item.totalPrice}
												</td>
											</tr>
										</c:forEach>
									</table>
								</div>
								<h4>
									收货人信息
								</h4>
								<div class="division">
									<table width="100%" cellspacing="0" cellpadding="0" class="liststyle data">
										<tbody>
											<tr>
												<th>
													收货人姓名:
												</th>
												<td>
													${orders.shipName }
												</td>
												<th>
													收货人Mail:
												</th>
												<td>
													${orders.shipEmail}
												</td>
											</tr>
											<tr>
												<th>
													配送地区:
												</th>
												<td>
													${orders.shipArea}
												</td>
												<th>
													联系电话:
												</th>
												<td>
													${orders.shipTel} /${orders.shipMobile}
												</td>
											</tr>
											<tr>
												<th>
													收货人邮编:
												</th>
												<td>
													${orders.shipZip}
												</td>
												<th>
													送货时间:
												</th>
												<td>
													${orders.shipTime}
												</td>
											</tr>
											<tr>
												<th>
													配送方式:
												</th>
												<td>
													货到付款（示范）
												</td>
												<th>
													付款方式:
												</th>
												<td>
													货到付款 &nbsp;
												</td>
											</tr>
											<tr>
												<th>
													商品重量:
												</th>
												<td>
													${orders.weight} g
												</td>
												<th>
													支付币别:
												</th>
												<td>
													人民币
												</td>
											</tr>
											<tr>
												<th valign="top">
													收货人地址:
												</th>
												<td valign="top" colspan="3">
													${orders.shipAddr}
												</td>
											</tr>
											<tr>
												<th valign="top">
													订单附言:
												</th>
												<td valign="top" colspan="3">
													${orders.description}
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>
							<table width="100%" cellspacing="0" cellpadding="0" border="0" class="liststyle data">

								<tr>
									<th>
										商品总金额:
									</th>
									<td>
										<fmt:message key="common_currency" />
										<fmt:formatNumber pattern="0.00" value="${orders.totalAmount - orders.costFreight}" />
									</td>
								</tr>
								<tr>
									<th>
										配送费用:
									</th>
									<td>
										<fmt:message key="common_currency" /> <fmt:formatNumber pattern="0.00" value="${ orders.costFreight}" />
									</td>
								</tr>
								<tr>
									<th>
										您可获得积分:
									</th>
									<td>
										${orders.scoreU}
									</td>
								</tr>
								<tr>
									<th>
										优惠金额:
									</th>
									<td style="color: rgb(255, 0, 0);">
										<fmt:message key="common_currency" />   <fmt:formatNumber pattern="0.00" value="${ orders.pmtAmount}" />
									</td>
								</tr>
								<tr>
									<th>
										订单总金额:
									</th>
									<td class="price1">
										<fmt:message key="common_currency" />  <fmt:formatNumber pattern="0.00" value="${ orders.totalAmount}" />
									</td>
								</tr>

							</table>
						</div>
						<div style="border-width: 1px; background: #ffffff; margin-top: 20px;" class="note">
							<ol>
								<c:forEach items="${orderLogs}" var="log">
									<li>
										<span class="date">${log.createTimeString }</span>
										<span style="padding-left: 58px;">${log.behavior }</span>
										<span style="padding-left: 58px;">${log.opName}</span>
									</li>
								</c:forEach>
							</ol>
						</div>



					</div>
				</div>
			</div>
		</div>



		<%@ include file="/jsp/front/common/footer.jsp"%>
	</body>
</html>